fixing the input ui at certain endpoints causing the button to overflow. #1574
fixing the input ui at certain endpoints causing the button to overflow. #1574juliusmarminge merged 12 commits intopingdotgg:mainfrom
Conversation
- Move send, stop, and plan follow-up controls into a shared component - Add compact pending-question and implementation action variants to avoid overflow
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- Raise the wide-actions compact threshold - Force compact mode when footer content no longer fits - Keep composer actions on one line and add fit tests
- measure footer content width after padding - add overflow-based compactness heuristic - update tests for footer layout behavior
- add browser tests for pending input and plan follow-up footers - mark composer footer/action compact state for layout assertions - remove redundant ComposerPrimaryActions snapshot tests
- Update the test description to reflect that minor overflow stays expanded when primary actions can compact - Preserve the intended composer footer layout behavior
# Conflicts: # apps/web/src/components/ChatView.browser.tsx
- Remove composer overflow clipping so slash-command items can render and receive pointer events - Add a browser test covering menu visibility and hit target above the composer
- Fuse implement actions into a single responsive control - Preserve model picker alignment and add regression coverage
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
- Preserve compact composer behavior at narrower widths - Tweak provider model picker spacing to avoid truncation

origin - https://x.com/KevinVanCott/status/2038274360058753214
What Changed
Previousto an icon in compact mode.Submit answersshortens toSubmitin compact mode.Implementbutton.Why
Resizing the app could leave the composer footer in a state where the right-side action cluster was wider than the available space. The old layout combined several constraints that made overflow inevitable:
Submit answersand the splitImplementbutton had no narrow fallback,This change fixes the root cause instead of just adjusting the breakpoint. The footer actions now have a true compact rendering path, so they still fit when the composer becomes narrow after resize.
UI Changes
Before:
Screen.Recording.2026-03-30.at.3.16.26.PM.mov
After:
Screen.Recording.2026-03-30.at.3.41.59.PM.mov
note: don't mind the lag, it's just my machine having low memory !!
Checklist
Note
Medium Risk
UI layout logic for the chat composer footer is now driven by DOM measurements and resize events, which could introduce edge-case regressions across browsers/viewports. Changes are isolated to the composer footer/action rendering and add targeted unit/browser tests to reduce risk.
Overview
Fixes chat composer footer action overflow after resizes by adding measurement-based compacting logic and separating footer compactness from primary-action compactness.
The right-side action cluster (send/stop, pending-question navigation, plan follow-up implement/refine) is extracted into a new
ComposerPrimaryActionscomponent with compact variants (shorter labels and icon-only previous). Footer layout helpers incomposerFooterLayout.tsadd overflow/fit calculations and update the wide-actions breakpoint, while browser tests inChatView.browser.tsxsimulate real container resizes to assert actions stay contained and the slash menu remains visible.Written by Cursor Bugbot for commit 4381d82. This will update automatically on new commits. Configure here.
Note
Fix composer footer button overflow at narrow viewport widths
compactpropResizeObserverand new helpers in composerFooterLayout.ts to independently compact either the full footer or only the primary actions based on measured overflowCOMPOSER_FOOTER_WIDE_ACTIONS_COMPACT_BREAKPOINT_PXfrom 720px to 780px and introducesCOMPOSER_PRIMARY_ACTIONS_COMPACT_BREAKPOINT_PXat the same thresholdMacroscope summarized 9f17470.